package com.enumExce;

/**
 * @Author WaveHi
 * @Date 7/8/2021 上午 10:58
 * @Version 1.0
 * @Contact HJBWaveHi@163.com
 * @Description 测试用的枚举类
 */
public enum MyEnum2 implements MyInterface{

    WOW(){
        @Override
        public void printI() {

            System.out.println("WOW!");

        }
    };

    private String name;//姓名
    private int age;//年龄

    private MyEnum2() {

    }

    private MyEnum2(String name,int age) {

        this.name = name;
        this.age = age;

    }

}
